import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import router from './router'
import 'element-ui/lib/theme-chalk/index.css';
import Register from './pages/Register'
import Login from './pages/Login'
import Manager from './pages/Manager'
import Class from './pages/Class'
import Student from './pages/Student'
import Course from './pages/Course'
import store from './store'


Vue.use(ElementUI);
Vue.component('Register',Register)
Vue.component('login',Login);
Vue.component('manager',Manager);
Vue.component('class',Class);
Vue.component('student',Student);
Vue.component('course',Course);
Vue.config.productionTip = false

router.beforeEach((to,from,next)=>{
  next()
}),

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
